//-----------------------------------------------------------------------
// <copyright file="a_ReviewBase.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
	
using System;
using System.Data;
using System.ComponentModel;
using System.Collections;

namespace ThoiTrang.Entities
{
	[Serializable]
	public class a_ReviewBase
	{
		
		#region Variable Declarations
		private int				rid = 0;
		private int				prodID = 0;
		private int				reviewer_UserID = 0;
		private string				name = string.Empty;
		private DateTime				reviewDate = new DateTime(1900,1,1,0,0,0,0);
		private string				subject = string.Empty;
		private string				body = string.Empty;
		private byte				rating = 0;
		private int				helpFul_Yes = 0;
		private int				helpfullCount = 0;
		private bool				reviewStatus = false;
		#endregion
		
		#region Constructors
		public a_ReviewBase() {}
		
		public a_ReviewBase (
			int rid,
			int prodID,
			int reviewer_UserID,
			string name,
			DateTime reviewDate,
			string subject,
			string body,
			byte rating,
			int helpFul_Yes,
			int helpfullCount,
			bool reviewStatus)
		
		{
			this.rid = rid;
			this.prodID = prodID;
			this.reviewer_UserID = reviewer_UserID;
			this.name = name;
			this.reviewDate = reviewDate;
			this.subject = subject;
			this.body = body;
			this.rating = rating;
			this.helpFul_Yes = helpFul_Yes;
			this.helpfullCount = helpfullCount;
			this.reviewStatus = reviewStatus;
		}
		#endregion
		
		#region Properties	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int RID
		{
			get { return rid; }
			set { rid = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int ProdID
		{
			get { return prodID; }
			set { prodID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int Reviewer_UserID
		{
			get { return reviewer_UserID; }
			set { reviewer_UserID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is varchar</value>
		public string Name
		{
			get { return name; }
			set { name = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is datetime</value>
		public DateTime ReviewDate
		{
			get { return reviewDate; }
			set { reviewDate = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is varchar</value>
		public string Subject
		{
			get { return subject; }
			set { subject = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is varchar</value>
		public string Body
		{
			get { return body; }
			set { body = value; }
		}
	
		/// <summary>
		/// 	1 to 10 scale
		/// </summary>
		/// <value>This type is tinyint</value>
		public byte Rating
		{
			get { return rating; }
			set { rating = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int HelpFul_Yes
		{
			get { return helpFul_Yes; }
			set { helpFul_Yes = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int HelpfullCount
		{
			get { return helpfullCount; }
			set { helpfullCount = value; }
		}
	
		/// <summary>
		/// 	0=approved, 1=pending approval
		/// </summary>
		/// <value>This type is bit</value>
		public bool ReviewStatus
		{
			get { return reviewStatus; }
			set { reviewStatus = value; }
		}
	
		
		#endregion
	}//End Class
	
	public enum a_ReviewColumns
	{
		RID,
		ProdID,
		Reviewer_UserID,
		Name,
		ReviewDate,
		Subject,
		Body,
		Rating,
		HelpFul_Yes,
		HelpfullCount,
		ReviewStatus
	}//End enum
}